import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router'

const routes:Array<RouteRecordRaw> = [
    {
        path:'/',
        name:'HelloWorld',
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:'/Register',
        name:'Register',
        component:()=>import('../view/User/Register.vue')
    },
    {
        path:'/SelUser',
        name:'SelUser',
        component:()=>import('../view/User/SelUser.vue')
    },
    {
        path:'/UserRegister',
        name:'UserRegister',
        component:()=>import('../view/User/UserRegister.vue')
    },
    {
        path:'/AddInvest',
        name:'AddInvest',
        component:()=>import('../view/Invest/AddInvest.vue')
    },
    {
        path:'/SelInvest',
        name:'SelInvest',
        component:()=>import('../view/Invest/SelInvest.vue')
    },
    {
        path:'/UpdateInvest',
        name:'UpdateInvest',
        component:()=>import('../view/Invest/UpdateInvest.vue')
    },
    {
        path:'/AddFinan',
        name:'AddFinan',
        component:()=>import('../view/Finan/AddFinan.vue')
    },
    {
        path:'/ShowFinan',
        name:'ShowFinan',
        component:()=>import('../view/Finan/ShowFinan.vue')
    },
    {
        path:'/UpdFinan',
        name:'UpdFinan',
        component:()=>import('../view/Finan/UpdFinan.vue')
    },
    {
        path:'/AddBorrow',
        name:'AddBorrow',
        component:()=>import('../view/Borrow/AddBorrow.vue')
    },
    {
        path:'/ShowBorrow',
        name:'ShowBorrow',
        component:()=>import('../view/Borrow/ShowBorrow.vue')
    },
]
//创建路由实例
const route = createRouter({
    history:createWebHistory(),
    routes
    
})

//导出路由实例
export default route